<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <style>
    table {
      width: 100%;
      border-collapse: collapse;
    }

    table,
    th,
    td {
      border: 1px solid black;
    }

    th,
    td {
      padding: 10px;
      text-align: left;
    }

    th {
      background-color: #f2f2f2;
    }
  </style>
</head>

<body>
  <title>Flyway查询结果</title>
  {{range .}}
  <h3>{{.Row}}</h3>
  {{if .Flyway}}
  <table>
    <tr>
      <th>InstalledRank</th>
      <th>Version</th>
      <th>Type</th>
      <th>Script</th>
      <th>InstalledBy</th>
      <th>InstalledOn</th>
      <th>ExecutionTime</th>
      <th>Success</th>
    </tr>
    {{range .Flyway}}
    <tr>
      <td>{{.InstalledRank}}</td>
      <td>{{.Version}}</td>
      <td>{{.Type}}</td>
      <td>{{.Script}}</td>
      <td>{{.InstalledBy}}</td>
      <td>{{.InstalledOn}}</td>
      <td>{{.ExecutionTime}}</td>
      <td>{{.Success}}</td>
    </tr>
    {{end}}
  </table>
  {{else}}
    <p>Flyway无失败记录</p>
  {{end}}
  {{end}}
</body>

</html>